package com.itheima.file;

import java.io.File;
/*
给路径  创建对象
不管是文件夹 还是文件 都是File
 */
public class Demo01 {

    public static void main(String[] args) {
        File file = new File("D:");
        File file1 = new File("D:\\itheima");
        File file2 = new File("D:\\itheima\\a.txt");
        File file3 = new File(file1, "a.txt");
        File file4 = new File("D:\\itheima", "a.txt");
    }
}
